i = 1
while i <= 9:
    j = 1
    while j <= i:
        print(f"{j} * {i} = {i * j}\t",end = '')#内层循环不换行，加end=''
        j += 1
    print() #print空内容，就是输出一个换行符
    i += 1
